package com.sz.designpattern.behavior11.command;

public class ShutdownCommand implements Command{
    private Receiver receiver;

    public ShutdownCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        System.out.println("具体命令  ShutdownCommand.execute");
        receiver.action();
    }
}
